home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 2.7 KB | 91 lines | [TEXT/MPS ] |
- ;
- ; File: Folders.a
- ;
- ; Contains: Folder Manager Interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__FOLDERS__') = 'UNDEFINED' THEN
- __FOLDERS__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__FILES__') = 'UNDEFINED' THEN
- include 'Files.a'
- ENDIF
- ; include 'MixedMode.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Memory.a' ;
- ; include 'Finder.a' ;
-
- kOnSystemDisk EQU $8000
- kCreateFolder EQU true
- kDontCreateFolder EQU false
- kSystemFolderType EQU 'macs' ; the system folder
- kDesktopFolderType EQU 'desk' ; the desktop folder; objects in this folder show on the desk top.
- kTrashFolderType EQU 'trsh' ; the trash folder; objects in this folder show up in the trash
- kWhereToEmptyTrashFolderType EQU 'empt' ; the "empty trash" folder; Finder starts empty from here down
- kPrintMonitorDocsFolderType EQU 'prnt' ; Print Monitor documents
- kStartupFolderType EQU 'strt' ; Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here
- kShutdownFolderType EQU 'shdf' ; Finder objects (applications, documents, DAs, aliases, to...) to open at shutdown go here
- kAppleMenuFolderType EQU 'amnu' ; Finder objects to put into the Apple menu go here
- kControlPanelFolderType EQU 'ctrl' ; Control Panels go here (may contain INITs)
- kExtensionFolderType EQU 'extn' ; Finder extensions go here
- kFontsFolderType EQU 'font' ; Fonts go here
- kPreferencesFolderType EQU 'pref' ; preferences for applications go here
- kTemporaryFolderType EQU 'temp'
-
- IF SystemSevenOrLater THEN
- ;
- ; pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _FindFolder
- moveq #0,d0
- dc.w $A823
- EndM
- ELSE
- IMPORT_CFM_FUNCTION FindFolder
- ENDIF
-
- ELSE
- ;
- ; pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION FindFolder
- ENDIF
-
- ENDIF
- ;
- ; pascal OSErr ReleaseFolder(short vRefNum, OSType folderType)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ReleaseFolder
- moveq #11,d0
- dc.w $A823
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ReleaseFolder
- ENDIF
-
- ENDIF ; __FOLDERS__
-